package com.tour.modules.web.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.tour.modules.web.dao.TUserDao;
import com.tour.modules.web.entity.TUserEntity;
import com.tour.modules.web.service.TUserService;



@Service("tUserService")
public class TUserServiceImpl implements TUserService {
	@Autowired
	private TUserDao tUserDao;

	@Override
	public TUserEntity queryObject(Long id){
		return tUserDao.queryObject(id);
	}

	@Override
	public List<TUserEntity> queryList(Map<String, Object> map){
		return tUserDao.queryList(map);
	}

	@Override
	public int queryTotal(Map<String, Object> map){
		return tUserDao.queryTotal(map);
	}

	@Override
	public void save(TUserEntity tUser){
		tUserDao.save(tUser);
	}

	@Override
	public void update(TUserEntity tUser){
		tUserDao.update(tUser);
	}

	@Override
	public void delete(Long id){
		tUserDao.delete(id);
	}

	@Override
	public void deleteBatch(Long[] ids){
		tUserDao.deleteBatch(ids);
	}

	@Override
	public TUserEntity login(String userName) {
		return tUserDao.login(userName);
	}


}
